---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: 3proxy
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/base/3proxy
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: znc
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/znc
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: 3x-ui
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/base/3x-ui
  prune: true
  suspend: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: i2pd
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/base/i2pd
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-git-dotfiles
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-git-dotfiles
  prune: true
  # Setting spec.wait to true makes Flux wait for the Job to complete before
  # it is considered ready.
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-git-dotfiles-kube5001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-git-dotfiles-kube5001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube5001 Kustomization
  # will wait until all the Jobs in maintenance-git-dotfiles-kube5001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-git-dotfiles
  # Setting spec.wait to true makes Flux wait for the Job to complete before
  # it is considered ready.
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-guix
  prune: true
  # Setting spec.wait to true makes Flux wait for the Job to complete before
  # it is considered ready.
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-pull-kube5001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-guix-pull-kube5001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube5001 Kustomization
  # will wait until all the Jobs in maintenance-git-dotfiles-kube5001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix
  - name: maintenance-git-dotfiles-kube5001
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-system-reconfigure-kube5001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-guix-system-reconfigure-kube5001
  prune: true
  # This means that the maintenance-guix-home-reconfigure-kube5001 Kustomization
  # will wait until all the Jobs in maintenance-guix-pull-kube5001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix-pull-kube5001
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: maintenance-guix-package-manifest-kube5001
  namespace: flux-system
spec:
  interval: 1m0s
  path: ./apps/cluster2/maintenance-guix-package-manifest-kube5001
  prune: true
  # This means that the maintenance-guix-package-manifest-kube5001 Kustomization
  # will wait until all the Jobs in maintenance-guix-pull-kube5001 run to
  # completion. If the Job fails, the app changes will not be applied by the
  # app-deploy Kustomization.
  dependsOn:
  - name: maintenance-guix-pull-kube5001
  wait: true
  sourceRef:
    kind: GitRepository
    name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: restreamer
  namespace: flux-system
spec:
  interval: 30m0s
  path: ./apps/cluster2/restreamer
  prune: true
  sourceRef:
    kind: GitRepository
    name: flux-system
